<?php



/**
 * Theme
 */
class Theme
{
    /**
     * @var integer $id
     */
    private $id;

    /**
     * @var string $slug
     */
    private $slug;

    /**
     * @var string $name
     */
    private $name;

    /**
     * @var boolean $principal
     */
    private $principal;

    /**
     * @var string $image
     */
    private $image;

    /**
     * @var Theme
     */
    private $myThemes;

    /**
     * @var Theme
     */
    private $themesWithMe;

    /**
     * @var Discussion
     */
    private $discussions;

    public function __construct()
    {
        $this->myThemes = new \Doctrine\Common\Collections\ArrayCollection();
    $this->themesWithMe = new \Doctrine\Common\Collections\ArrayCollection();
    $this->discussions = new \Doctrine\Common\Collections\ArrayCollection();
    }
    
    /**
     * Get id
     *
     * @return integer $id
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set slug
     *
     * @param string $slug
     */
    public function setSlug($slug)
    {
        $this->slug = $slug;
    }

    /**
     * Get slug
     *
     * @return string $slug
     */
    public function getSlug()
    {
        return $this->slug;
    }

    /**
     * Set name
     *
     * @param string $name
     */
    public function setName($name)
    {
        $this->name = $name;
    }

    /**
     * Get name
     *
     * @return string $name
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Set principal
     *
     * @param boolean $principal
     */
    public function setPrincipal($principal)
    {
        $this->principal = $principal;
    }

    /**
     * Get principal
     *
     * @return boolean $principal
     */
    public function getPrincipal()
    {
        return $this->principal;
    }

    /**
     * Set image
     *
     * @param string $image
     */
    public function setImage($image)
    {
        $this->image = $image;
    }

    /**
     * Get image
     *
     * @return string $image
     */
    public function getImage()
    {
        return $this->image;
    }

    /**
     * Add myThemes
     *
     * @param Theme $myThemes
     */
    public function addMyThemes(\Theme $myThemes)
    {
        $this->myThemes[] = $myThemes;
    }

    /**
     * Get myThemes
     *
     * @return Doctrine\Common\Collections\Collection $myThemes
     */
    public function getMyThemes()
    {
        return $this->myThemes;
    }

    /**
     * Add themesWithMe
     *
     * @param Theme $themesWithMe
     */
    public function addThemesWithMe(\Theme $themesWithMe)
    {
        $this->themesWithMe[] = $themesWithMe;
    }

    /**
     * Get themesWithMe
     *
     * @return Doctrine\Common\Collections\Collection $themesWithMe
     */
    public function getThemesWithMe()
    {
        return $this->themesWithMe;
    }

    /**
     * Add discussions
     *
     * @param Discussion $discussions
     */
    public function addDiscussions(\Discussion $discussions)
    {
        $this->discussions[] = $discussions;
    }

    /**
     * Get discussions
     *
     * @return Doctrine\Common\Collections\Collection $discussions
     */
    public function getDiscussions()
    {
        return $this->discussions;
    }
}